package com.cet.designpatterns.prototype.深拷贝;

import java.io.Serializable;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-09-06 16:16
 **/
public class DeepCloneableTarget implements Cloneable, Serializable {

    private static final long serialVersionUID = -2561554343200754753L;

    private String cloneName;

    private String cloneClass;

    public DeepCloneableTarget(String cloneName, String cloneClass) {
        this.cloneName = cloneName;
        this.cloneClass = cloneClass;
    }

    /**
     * String是不可变类型，使用clone完成即可
     */
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
